package com.yonsz.open.platform.exceptions;

import com.yonsz.open.platform.model.OpenResponse;
import lombok.Data;

@Data
public class OpenApiException extends RuntimeException {
    private static final long serialVersionUID = 1;
    private Integer code;
    private OpenResponse res;
    public OpenApiException(OpenResponse res) {
        super(res.getMessage());
        this.code = res.getStatusCode();
        this.res = res;
    }
}
